package com.tzbank.entity.backstage;

import com.tzbank.entity.BaseModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.Table;

import javax.persistence.Column;
import javax.persistence.Entity;
import java.io.Serializable;

/**
 * 角色关联权限表
 * @author XUZONGTIAN
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Entity(name = "mb_role_auth")
@Table(appliesTo = "mb_role_auth", comment = "角色关联权限表")
public class RoleAuth extends BaseModel implements Serializable {

	private static final long serialVersionUID = -8973695713557010446L;

	/**
	 * 角色ID
	 */
	@ApiModelProperty(value = "角色ID")
	@Column(name = "role_id", columnDefinition = "INT(11) NOT NULL COMMENT '角色ID'")
	private Integer roleId;

	/**
	 * 权限ID
	 */
	@ApiModelProperty(value = "权限ID")
	@Column(name = "auth_id", columnDefinition = "INT(11) NOT NULL COMMENT '权限ID'")
	private Integer authId;

}
